package com.woniuxy.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName appraise
 */
@TableName(value ="appraise")
@Data
public class Appraise implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer appraiseId;

    /**
     * 
     */
    private Integer empId;

    /**
     * 
     */
    private Date appDate;

    /**
     * 
     */
    private String appResult;

    /**
     * 
     */
    private String appContent;

    /**
     * 
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Appraise other = (Appraise) that;
        return (this.getAppraiseId() == null ? other.getAppraiseId() == null : this.getAppraiseId().equals(other.getAppraiseId()))
            && (this.getEmpId() == null ? other.getEmpId() == null : this.getEmpId().equals(other.getEmpId()))
            && (this.getAppDate() == null ? other.getAppDate() == null : this.getAppDate().equals(other.getAppDate()))
            && (this.getAppResult() == null ? other.getAppResult() == null : this.getAppResult().equals(other.getAppResult()))
            && (this.getAppContent() == null ? other.getAppContent() == null : this.getAppContent().equals(other.getAppContent()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAppraiseId() == null) ? 0 : getAppraiseId().hashCode());
        result = prime * result + ((getEmpId() == null) ? 0 : getEmpId().hashCode());
        result = prime * result + ((getAppDate() == null) ? 0 : getAppDate().hashCode());
        result = prime * result + ((getAppResult() == null) ? 0 : getAppResult().hashCode());
        result = prime * result + ((getAppContent() == null) ? 0 : getAppContent().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", appraiseId=").append(appraiseId);
        sb.append(", empId=").append(empId);
        sb.append(", appDate=").append(appDate);
        sb.append(", appResult=").append(appResult);
        sb.append(", appContent=").append(appContent);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}